<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:92:"C:\wamp\www\thinkphp323\thinkphp5\thinkphp\public/../application/admin\view\article\list.htm";i:1533542188;s:83:"C:\wamp\www\thinkphp323\thinkphp5\thinkphp\application\admin\view\common\header.htm";i:1532589101;s:81:"C:\wamp\www\thinkphp323\thinkphp5\thinkphp\application\admin\view\common\left.htm";i:1533690443;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
	<meta charset="utf-8">
    <title> http://127.0.0.1/thinkphp323/thinkphp5/thinkphp/public/static/admin</title>

    <meta name="description" content="Dashboard">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--Basic Styles-->
    <link href="http://127.0.0.1/thinkphp323/thinkphp5/thinkphp/public/static/admin/style/bootstrap.css" rel="stylesheet">
    <link href="http://127.0.0.1/thinkphp323/thinkphp5/thinkphp/public/static/admin/style/font-awesome.css" rel="stylesheet">
    <link href="http://127.0.0.1/thinkphp323/thinkphp5/thinkphp/public/static/admin/style/weather-icons.css" rel="stylesheet">

    <!--Beyond styles-->
    <link id="beyond-link" href="http://127.0.0.1/thinkphp323/thinkphp5/thinkphp/public/static/admin/style/beyond.css" rel="stylesheet" type="text/css">
    <link href="http://127.0.0.1/thinkphp323/thinkphp5/thinkphp/public/static/admin/style/demo.css" rel="stylesheet">
    <link href="http://127.0.0.1/thinkphp323/thinkphp5/thinkphp/public/static/admin/style/typicons.css" rel="stylesheet">
    <link href="http://127.0.0.1/thinkphp323/thinkphp5/thinkphp/public/static/admin/style/animate.css" rel="stylesheet">
    <style type="text/css">
        .goodintro{float: left;line-height: 40px;color: #999;width: 80px;height:40px;text-align: center;}
        .btnclas{background: #2DC3E8;color:#fff;}
        .absolutediv{display: none;}
        .tabletdstyle{text-align:center;height:100px;font-size:0.8em;}
    </style>

    </head>
<body>
	<!-- 头部 -->
	<div class="navbar">
    <div class="navbar-inner">
        <div class="navbar-container">
            <!-- Navbar Barnd -->
            <div class="navbar-header pull-left">
                <a href="#" class="navbar-brand">
                    <small>
                        <img src="http://www.lovetrival.com/Public/Img/logo2.png" alt="">
                    </small>
                </a>
            </div>
            <!-- /Navbar Barnd -->
            <!-- Sidebar Collapse -->
            <div class="sidebar-collapse" id="sidebar-collapse">
                <i class="collapse-icon fa fa-bars"></i>
            </div>
            <!-- /Sidebar Collapse -->
            <!-- Account Area and Settings -->
            <div class="navbar-header pull-right">
                <div class="navbar-account">
                    <ul class="account-area">
                        <li>
                            <a class="login-area dropdown-toggle" data-toggle="dropdown">
                                <div class="avatar" title="View your public profile">
                                    <img src="http://127.0.0.1/thinkphp323/thinkphp5/thinkphp/public/static/admin/images/adam-jansen.jpg">
                                </div>
                                <section>
                                    <h2><span class="profile"><span><?php echo \think\Request::instance()->session('username'); ?></span></span></h2>
                                </section>
                            </a>
                            <!--Login Area Dropdown-->
                            <ul class="pull-right dropdown-menu dropdown-arrow dropdown-login-area">
                                <li class="username"><a>David Stevenson</a></li>
                                <li class="dropdown-footer">
                                    <a href="<?php echo url('admin/logout'); ?>">
                                            退出登录
                                        </a>
                                </li>
                                <li class="dropdown-footer">
                                    <a href="<?php echo url('admin/edit',array('id'=>\think\Request::instance()->session('uid'))); ?>">
                                            修改密码
                                        </a>
                                </li>
                            </ul>
                            <!--/Login Area Dropdown-->
                        </li>
                        <!-- /Account Area -->
                        <!--Note: notice that setting div must start right after account area list.
                            no space must be between these elements-->
                        <!-- Settings -->
                    </ul>
                </div>
            </div>
            <!-- /Account Area and Settings -->
        </div>
    </div>
</div>
	<!-- /头部 -->
	
	<div class="main-container container-fluid">
		<div class="page-container">
			<!-- Page Sidebar -->
            <div class="page-sidebar" id="sidebar">
    <!-- Page Sidebar Header-->
    <div class="sidebar-header-wrapper">
        <input class="searchinput" type="text">
        <i class="searchicon fa fa-search"></i>
        <div class="searchhelper">Search Reports, Charts, Emails or Notifications</div>
    </div>
    <!-- /Page Sidebar Header -->
    <!-- Sidebar Menu -->
    <ul class="nav sidebar-menu">
        <!--Dashboard-->
        <li>
            <a href="javascript:void(0)" class="menu-dropdown">
                <i class="menu-icon fa fa-user"></i>
                <span class="menu-text">管理员</span>
                <i class="menu-expand"></i>
            </a>
            <ul class="submenu">
                <li>
                    <!-- ul地址的生成 -->
                    <a href="<?php echo url('admin/lists'); ?>">
                        <span class="menu-text">员工列表</span>
                        <i class="menu-expand"></i>
                    </a>
                </li>
                <li>
                    <!-- ul地址的生成 -->
                    <a href="<?php echo url('Websites/lists'); ?>">
                        <span class="menu-text">会员列表</span>
                        <i class="menu-expand"></i>
                    </a>
                </li>
            </ul>                            
        </li> 

        <li>
            <a href="#" class="menu-dropdown">
                <i class="menu-icon fa fa-file-text"></i>
                <span class="menu-text">栏目</span>
                <i class="menu-expand"></i>
            </a>
            <ul class="submenu">
                <li>
                    <!-- <a href="<?php echo url('goodstore/lists'); ?>"> -->
                    <a href="<?php echo url('cate/lists'); ?>">
                        <span class="menu-text">主题列表</span>
                        <!-- <span class="menu-text">栏目列表</span> -->
                        <i class="menu-expand"></i>
                    </a>
                </li>

                <li>
             
                    <a href="<?php echo url('pictureinfo/lists'); ?>">
                        <span class="menu-text">主题图片</span>
                     
                        <i class="menu-expand"></i>
                    </a>
                </li>
            </ul>                            
        </li> 

        <li>
            <a href="#" class="menu-dropdown">
                <i class="menu-icon fa fa-gear"></i>
                <span class="menu-text">产品</span>
                <i class="menu-expand"></i>
            </a>
            <ul class="submenu">
                <li>
                    <a href="<?php echo url('article/goodsintro'); ?>">
                        <span class="menu-text">推荐产品</span>
                        <i class="menu-expand"></i>
                    </a>
                </li>
            </ul>                            
        </li>  

        <li>
            <a href="#" class="menu-dropdown">
                <i class="menu-icon fa fa-gear"></i>
                <span class="menu-text">热门标签</span>
                <i class="menu-expand"></i>
            </a>
            <ul class="submenu">
                <li>
                    <a href="<?php echo url('tages/lists'); ?>">
                        <span class="menu-text">热门设置</span>
                        <i class="menu-expand"></i>
                    </a>
                </li>
            </ul>                            
        </li>                        
        
         <li>
            <a href="#" class="menu-dropdown">
                <i class="menu-icon fa fa-gear"></i>
                <span class="menu-text">产品链接</span>
                <i class="menu-expand"></i>
            </a>
            <ul class="submenu">
                <li>
                    <a href="<?php echo url('links/lists'); ?>">
                        <span class="menu-text">链接列表</span>
                        <i class="menu-expand"></i>
                    </a>
                </li>
            </ul>                            
        </li>
    </ul>
    <!-- /Sidebar Menu -->
</div>
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                        <li>
                            <a href="javascript:void(0)">系统</a>
                        </li>
                        <li class="active">
                            <a href="<?php echo url('article/lists'); ?>">文章管理</a>
                        </li>
                    </ul>
                </div>
                <!-- /Page Breadcrumb -->
                <!-- Page Body -->
                <div class="page-body">
                <button type="button" tooltip="添加文章" class="btn btn-sm btn-azure btn-addon" onClick="testfunc(this)" value=''> 
                <!-- <button type="button" tooltip="添加文章" class="btn btn-sm btn-azure btn-addon" onClick="javascript:window.location.href = '<?php echo url('article/add'); ?>'" value='1'>  -->
                    <i class="fa fa-plus"></i> 
                    Add
                </button>
                <div class="row">
                    <div class="col-lg-12 col-sm-12 col-xs-12" style='overflow:auto;'>
                        <div class="widget">
                            <div class="widget-body" style='overflow:auto;'>
                                <div class='divbody' style='overflow:auto;'>
                                    <div>
                                        <div style='position:relative;overflow:auto;'>
                                            <?php if(is_array($result) || $result instanceof \think\Collection || $result instanceof \think\Paginator): $i = 0; $__LIST__ = $result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($key=='超值套餐'): ?>
                                                    <div class='goodintro'>超值套餐</div>
                                                <?php endif; if($key=='超值机票'): ?>
                                                    <div class='goodintro'>超值机票</div>
                                                <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                                        </div>
                                    </div>
                                    <div style="overflow:auto;width:100%;">
                                        <div style='position:relative;' class='introgooddiv'>
                                            <?php if(is_array($result) || $result instanceof \think\Collection || $result instanceof \think\Paginator): $i = 0; $__LIST__ = $result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($key=='超值套餐'): ?>
                                                    <div style='position:absolute;width:100%;top:0px;left:0px;z-Index:99900;float:left;overflow:auto;' class='absolutediv'>
                                                        <div style='overflow:auto;'>
                                                            <div class="flip-scroll">
                                                                <table class="table table-bordered table-hover">
                                                                    <thead class="">
                                                                        <tr>
                                                                            <th class="text-center" width="8%">产品名称</th>
                                                                            <th class="text-center" width="8%">价格</th>
                                                                            <th class="text-center" width="10%">评价</th>
                                                                            <th class="text-center" width="12%">图片</th>
                                                                            <th class="text-center" width="5%">点赞</th>
                                                                            <th class="text-center" width="10%">操作</th>
                                                                        </tr>
                                                                    </thead>
                                                                    <tbody>
                                                                        <?php if(is_array($vo) || $vo instanceof \think\Collection || $vo instanceof \think\Paginator): $i = 0; $__LIST__ = $vo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$voc): $mod = ($i % 2 );++$i;?>
                                                                        <tr style='text-align:center;height:100px;line-height:100px;'>
                                                                            <input type='hidden' name='title' value='<?php echo $voc['title']; ?>'>
                                                                            <td class='tabletdstyle' style='line-height:100px;'><?php echo $voc['singleinfo']['name']; ?></td>
                                                                            <td class='tabletdstyle' style='line-height:100px;'><?php echo $voc['singleinfo']['price']; ?></td>
                                                                            <td class='tabletdstyle' style='line-height:100px;'><?php echo $voc['singleinfo']['specials']; ?></td>
                                                                            <td><img style='height:100px;' src="http://127.0.0.1/thinkphp323/thinkphp5/thinkphp/public<?php echo $voc['singleinfo']['picurl']; ?>"></td>
                                                                            <td class='tabletdstyle' style='line-height:100px;'><?php echo $voc['singleinfo']['click']; ?></td>
                                                                            <td style='text-align:center;height:100px;line-height:100px;'>
                                                                                <a href="<?php echo url('Websites/editgood',array('_id'=>$voc['id'],'type'=>'2')); ?>" class="btn btn-primary btn-sm shiny">
                                                            <i class="fa fa-edit"></i> 编辑
                                                        </a>
                                                        <a href="<?php echo url('Websites/delete',array('_id'=>$voc['id'])); ?>" class="btn btn-primary btn-sm shiny">
                                                            <i class="fa fa-edit"></i> 删除
                                                        </a>
                                                                            </td>
                                                                        </tr> 
                                                                        <?php endforeach; endif; else: echo "" ;endif; ?> 
                                                                    </tbody>
                                                                </table>
                                                              
                                                            </div>
                                                        </div>
                                                    </div>
                                                <?php endif; if($key=='超值机票'): ?>
                                                <div style='position:absolute;width:100%;top:0px;left:0px;z-Index:99900;float:left;overflow:auto;display:block;' class='absolutediv'>
                                                    <div style='overflow:auto;'>
                                                        <div class="flip-scroll">
                                                            <table class="table table-bordered table-hover">
                                                                <thead class="">
                                                                    <tr>
                                                                        <th class="text-center" width="12%">航空公司</th>
                                                                        <th class="text-center" width="8%">始发地</th>
                                                                        <th class="text-center" width="8%">目的地</th>
                                                                        <th class="text-center" width="8%">价格</th>
                                                                        <th class="text-center" width="8%">起飞时间</th>
                                                                        <th class="text-center" width="5%">点赞</th>
                                                                        <th class="text-center" width="18%">评价</th>
                                                                        <th class="text-center" width="10%">操作</th>
                                                                    </tr>
                                                                </thead>
                                                                <tbody>
                                                                   
                                                                    
                                                                        <?php if(is_array($vo) || $vo instanceof \think\Collection || $vo instanceof \think\Paginator): $i = 0; $__LIST__ = $vo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$voc): $mod = ($i % 2 );++$i;?>
                                                                        
                                                                            <tr style='text-align:center;'>
                                                                                <input type='hidden' name='title' value='<?php echo $voc['title']; ?>'>
                                                                                <td class='tabletdstyle' style='line-height:100px;'><?php echo $voc['singleinfo']['airname']; ?></td>
                                                                                <td class='tabletdstyle' style='line-height:100px;'><?php echo $voc['singleinfo']['startplace']; ?></td>
                                                                                <td class='tabletdstyle' style='line-height:100px;'><?php echo $voc['singleinfo']['endplace']; ?></td>
                                                                                <td class='tabletdstyle' style='line-height:100px;'><?php echo $voc['singleinfo']['price']; ?></td>
                                                                                <td class='tabletdstyle' style='line-height:100px;'><?php echo $voc['singleinfo']['flytime']; ?></td>
                                                                                <td class='tabletdstyle' style='line-height:100px;'><?php echo $voc['singleinfo']['click']; ?></td>
                                                                                <td class='tabletdstyle' style='line-height:100px;'><?php echo $voc['singleinfo']['specials']; ?></td>
                                                                                <td class='tabletdstyle' style='line-height:100px;' style='text-align:center;height:100px;line-height:100px;'>
                                                                                    <a href="<?php echo url('Websites/edit',array('Id'=>$voc['id'],'type'=>'2')); ?>" class="btn btn-primary btn-sm shiny">
                                                                <i class="fa fa-edit"></i> 编辑
                                                            </a>
                                                            <a href="<?php echo url('Websites/delete',array('_id'=>$voc['id'])); ?>" class="btn btn-primary btn-sm shiny">
                                                                <i class="fa fa-edit"></i> 删除
                                                            </a>
                                                                                </td>
                                                                            </tr> 
                                                                        <?php endforeach; endif; else: echo "" ;endif; ?>
                                                                </tbody>
                                                            </table>
                                                          
                                                        </div>
                                                    </div>
                                                </div>
                                                <?php endif; endforeach; endif; else: echo "" ;endif; ?>    
                                        </div>
                                    </div>
                                </div>  
                            </div>
                            </div>
                        </div>
                    </div>
                </div>
                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
		</div>	
	</div>

	    <!--Basic Scripts-->
    <script src="http://127.0.0.1/thinkphp323/thinkphp5/thinkphp/public/static/admin/style/jquery_002.js"></script>
    <script src="http://127.0.0.1/thinkphp323/thinkphp5/thinkphp/public/static/admin/style/bootstrap.js"></script>
    <script src="http://127.0.0.1/thinkphp323/thinkphp5/thinkphp/public/static/admin/style/jquery.js"></script>
    <!--Beyond Scripts-->
    <script src="http://127.0.0.1/thinkphp323/thinkphp5/thinkphp/public/static/admin/style/beyond.js"></script>
    
    <script type="text/javascript">
        $(function(){
            $('button[type=button]').val($('.goodintro:eq(0)').html());
            $('.introgooddiv').css({'height':$('.absolutediv:eq(0)').height()});
            $('.goodintro:eq(0)').addClass('btnclas');
            $('.goodintro').on('click',function(){
                var indexbtn=$(this).index();
                $(this).addClass('btnclas').siblings().removeClass('btnclas');
                $('.absolutediv:eq('+indexbtn+')').css({'display':'block'}).siblings().css({'display':'none'});
                $('.introgooddiv').css({'height':$('.absolutediv:eq('+indexbtn+')').height()});
                // alert()
                $('button[type=button]').val($(this).html());
            })
        })


        function testfunc(e){
            var titlelen=$('input[value='+e.value+']').length;
            if(titlelen>4||titlelen==4){
                alert('改套餐数目已经是4条，无法继续添加!');
                return;
            }

            // type存在为1，则表示添加;
            // type存在为2，则表示编辑;
            switch(e.value){
                // 添加超值机票
                case '超值机票':
                    // alert('nihao')
                    // window.location.href="www.baidu.com";
                    window.location.href='<?php echo url("Websites/edit",array("type"=>"1")); ?>';
                    break;

                // 添加超值套餐
                case '超值套餐':
                    window.location.href="<?php echo url('Websites/editgood',array('type'=>'1')); ?>";
                    break;
            }
        }
    </script>

</body></html>